package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;
import java.util.Date;

public class WechatMpActJiugonggeRecord implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 活动ID
     *
     * @mbg.generated
     */
    private String actId;

    /**
     * 抽奖人openid
     *
     * @mbg.generated
     */
    private String openid;

    /**
     * 昵称
     *
     * @mbg.generated
     */
    private String nickname;

    /**
     * 奖项
     *
     * @mbg.generated
     */
    private String awardsId;

    /**
     * 是否中奖：’0‘:否；’1‘:是
     *
     * @mbg.generated
     */
    private String awardStatus;

    /**
     * 兑奖码
     *
     * @mbg.generated
     */
    private String awardCode;

    /**
     * 领奖状态：‘0’：未领取；‘1’：已领取
     *
     * @mbg.generated
     */
    private String recieveStatus;

    /**
     * 领奖时间
     *
     * @mbg.generated
     */
    private Date recieveTime;

    /**
     * 抽奖时间
     *
     * @mbg.generated
     */
    private Date awardTime;

    /**
     * 收货人姓名
     *
     * @mbg.generated
     */
    private String realname;

    /**
     * 收货人手机号
     *
     * @mbg.generated
     */
    private String phone;

    /**
     * 收货人地址
     *
     * @mbg.generated
     */
    private String address;

    /**
     * 抽奖序号
     *
     * @mbg.generated
     */
    private Integer seq;

    /**
     * 公众号原始id
     *
     * @mbg.generated
     */
    private String jwid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getActId() {
        return actId;
    }

    public void setActId(String actId) {
        this.actId = actId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAwardsId() {
        return awardsId;
    }

    public void setAwardsId(String awardsId) {
        this.awardsId = awardsId;
    }

    public String getAwardStatus() {
        return awardStatus;
    }

    public void setAwardStatus(String awardStatus) {
        this.awardStatus = awardStatus;
    }

    public String getAwardCode() {
        return awardCode;
    }

    public void setAwardCode(String awardCode) {
        this.awardCode = awardCode;
    }

    public String getRecieveStatus() {
        return recieveStatus;
    }

    public void setRecieveStatus(String recieveStatus) {
        this.recieveStatus = recieveStatus;
    }

    public Date getRecieveTime() {
        return recieveTime;
    }

    public void setRecieveTime(Date recieveTime) {
        this.recieveTime = recieveTime;
    }

    public Date getAwardTime() {
        return awardTime;
    }

    public void setAwardTime(Date awardTime) {
        this.awardTime = awardTime;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public String getJwid() {
        return jwid;
    }

    public void setJwid(String jwid) {
        this.jwid = jwid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", actId=").append(actId);
        sb.append(", openid=").append(openid);
        sb.append(", nickname=").append(nickname);
        sb.append(", awardsId=").append(awardsId);
        sb.append(", awardStatus=").append(awardStatus);
        sb.append(", awardCode=").append(awardCode);
        sb.append(", recieveStatus=").append(recieveStatus);
        sb.append(", recieveTime=").append(recieveTime);
        sb.append(", awardTime=").append(awardTime);
        sb.append(", realname=").append(realname);
        sb.append(", phone=").append(phone);
        sb.append(", address=").append(address);
        sb.append(", seq=").append(seq);
        sb.append(", jwid=").append(jwid);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpActJiugonggeRecord other = (WechatMpActJiugonggeRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getActId() == null ? other.getActId() == null : this.getActId().equals(other.getActId()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getNickname() == null ? other.getNickname() == null : this.getNickname().equals(other.getNickname()))
            && (this.getAwardsId() == null ? other.getAwardsId() == null : this.getAwardsId().equals(other.getAwardsId()))
            && (this.getAwardStatus() == null ? other.getAwardStatus() == null : this.getAwardStatus().equals(other.getAwardStatus()))
            && (this.getAwardCode() == null ? other.getAwardCode() == null : this.getAwardCode().equals(other.getAwardCode()))
            && (this.getRecieveStatus() == null ? other.getRecieveStatus() == null : this.getRecieveStatus().equals(other.getRecieveStatus()))
            && (this.getRecieveTime() == null ? other.getRecieveTime() == null : this.getRecieveTime().equals(other.getRecieveTime()))
            && (this.getAwardTime() == null ? other.getAwardTime() == null : this.getAwardTime().equals(other.getAwardTime()))
            && (this.getRealname() == null ? other.getRealname() == null : this.getRealname().equals(other.getRealname()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getSeq() == null ? other.getSeq() == null : this.getSeq().equals(other.getSeq()))
            && (this.getJwid() == null ? other.getJwid() == null : this.getJwid().equals(other.getJwid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getActId() == null) ? 0 : getActId().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getNickname() == null) ? 0 : getNickname().hashCode());
        result = prime * result + ((getAwardsId() == null) ? 0 : getAwardsId().hashCode());
        result = prime * result + ((getAwardStatus() == null) ? 0 : getAwardStatus().hashCode());
        result = prime * result + ((getAwardCode() == null) ? 0 : getAwardCode().hashCode());
        result = prime * result + ((getRecieveStatus() == null) ? 0 : getRecieveStatus().hashCode());
        result = prime * result + ((getRecieveTime() == null) ? 0 : getRecieveTime().hashCode());
        result = prime * result + ((getAwardTime() == null) ? 0 : getAwardTime().hashCode());
        result = prime * result + ((getRealname() == null) ? 0 : getRealname().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getSeq() == null) ? 0 : getSeq().hashCode());
        result = prime * result + ((getJwid() == null) ? 0 : getJwid().hashCode());
        return result;
    }
}